<!DOCTYPE html>

<html lang='en'>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge"\>
    <title>Document</title>
    <script src="http://unpkg.com/vue"></script>
    <script src="./button.js"></script>
    <link rel="stylesheet" href="./button.css">
</head>
<body>
    <div id="root">
        <j-button @click="clickFn" title="登录" type="green"></j-button>
        <j-button @click="clickFn" title="确定" type="blue"></j-button>
        <j-button @click="clickFn" title="返回" type="red"></j-button>

    </div>
    <script>
         const vm = new Vue({
            el : '#root',
            data : {  },
            methods : { 
                clickFn(){
                    console.log('我点击按钮啦啦...');
                }
            }    
        });
    </script>
</body>

</html>